package com.dzh.dzhhub.service.impl;

import com.dzh.dzhhub.dao.UserDao;
import com.dzh.dzhhub.entity.Role;
import com.dzh.dzhhub.entity.User;
import com.dzh.dzhhub.service.UserService;
import com.fasterxml.jackson.databind.util.JSONPObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DZHooo
 * @version 1.0
 * @date 2021/11/15 20:38
 * @description: TODO
 */


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> listUser() {
        return userDao.listUser();
    }

    @Override
    public User getUser(String username) {
        return userDao.getUser(username);
    }

//    @Override
//    public List<Role> getAllRoles() {
//        return userDao.getAllRoles();
//    }
//
//    @Override
//    public void addUser(User user) {
//
//    }
//
//    @Override
//    public void updateUser(User user) {
//
//    }
//
//    @Override
//    public List<Role> listRole() {
//        return null;
//    }
}
